package cn.com.server.entity;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 网络配置表
 * </p>
 *
 * @author qing
 * @since 2017-11-15
 */
@SuppressWarnings("serial")
public class NetWork implements Serializable {


   /**
     * 主键
     */
	private Long id;
   /**
     * 网卡序号
     */
	private Integer sequence;
   /**
     * 网卡名
     */
	private String name;
   /**
     * ip
     */
	private String ip;
   /**
     * mac
     */
	private String mac;
   /**
     * 网关
     */
	private String gateway;
   /**
     * dns
     */
	private String dns;
   /**
     * 掩码
     */
	private String mask;
   /**
     * 状态
     */
	private Integer status;
   /**
     * 类型,0：内网
     */
	private Integer type;
   /**
     * 备注
     */
	private String remark;
   /**
     * 更新时间
     */
	private Date updateTime;
   /**
     * 创建时间
     */
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	public String getGateway() {
		return gateway;
	}

	public void setGateway(String gateway) {
		this.gateway = gateway;
	}
	public String getDns() {
		return dns;
	}

	public void setDns(String dns) {
		this.dns = dns;
	}
	public String getMask() {
		return mask;
	}

	public void setMask(String mask) {
		this.mask = mask;
	}
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale="zh",timezone = "GMT+8")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale="zh",timezone = "GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	   @Override
		public String toString() {
			return "NetWork {id=" + id + ", sequence=" + sequence + ", name=" + name + ", ip=" + ip + ", mac=" + mac
					+ ", gateway=" + gateway + ", dns=" + dns + ", mask=" + mask + ", status=" + status + ", type=" + type
					+ ", remark=" + remark + ", updateTime=" + updateTime + ", createTime=" + createTime + "}";
		}
}